<template>
  <div>
<DatePicker></DatePicker>
    <div>
      设置数据总数 <input v-model="total"/>
    </div>

    <page :total="total" @changeIndex="getIndex" next="next"></page>

  </div>
</template>

<script setup>
import  {ref} from  "vue"
import page from '../components/PageView.vue';
import DatePicker from "../components/DatePicker.vue";
let  total = ref(100);
let getIndex =(index)=>{
  alert("根据"+index+"去请求数据");
}
 


</script>
<style>

</style>